<{extend name="public/base"}>
<{block name="foot_source"}>
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<link rel="stylesheet" type="text/css" href="/static/webuploader/webuploader.css">
<{/block}>
<{block name="content"}>
<!-- left column -->
<div class="col-md-12">
    <!-- general form elements -->
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><{$title}></h3>
        </div>
        <!-- /.box-header -->

        <div>
            <img src="https://xcx.ogmall.com/admin/api/getInviteQr/code/<{$invitecode}>" id="qrcode" />
            <button class="btn btn-default" id="refresh_code">刷新二维码</button>
        </div>
        <div>
            推广链接：https://xcx.ogmall.com/index/index/index/invite/<{$invitecode}>
        </div>

    </div>
    <!-- /.box -->
</div>

<{/block}>

<{block name="foot_script"}>
 <script type="text/javascript">
     $(function(){
         $("#refresh_code").click(function(){
             var url = 'https://xcx.ogmall.com/admin/api/getInviteQr/code/<{$invitecode}>/refresh/1';
            $("#qrcode").attr("src",url)
         });
     });
 </script>
<{/block}>



